package com.clark.crawler.novel;

import com.clark.crawler.novel.processor.NovelPageProcessor;
import com.clark.crawler.novel.property.NovelProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import us.codecraft.webmagic.Spider;

/**
 * description:
 *
 * @author tianhua.xie（tianhua.xie@ucarinc.com）
 * @date 2018-12-26 17:53:14
 * @version 1.0
 */
@SpringBootApplication
public class NovelCrawlerApplication {

	public static void main(String[] args) {
		SpringApplication.run(NovelCrawlerApplication.class, args);

		Spider.create(new NovelPageProcessor()).addUrl(NovelProperties.novelUrl).thread(1).run();
	}

}

